<?php
class MemberAction extends BaseAction{
	//初始化;
	public function _initialize(){
		
	}
	
	//用户空间首页文件;
	public function index(){
		$dirs = array('index','bbs','article'); //$dir 允许的取值;
		
		$userid = (!empty($_GET['userid'])) && is_numeric($_GET['userid'])?$_GET['userid']:1;//获取用户的$userid;
		$dir = (!empty($_GET['dir'])) && in_array($_GET['dir'],$dirs)?$_GET['dir']:NULL;
		
		$this->display();
	}
	
	//bbs
	protected function bbs(){
		echo 'bbs';
	}
}

?>